package com.example.mapper;

import com.example.entity.pojo.Dept;
import com.example.entity.pojo.Emp;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface DeptMapper {
    public List<Dept> selectAll();

    //动态sql查询
    public List<Dept> selectByDtoCondition(Dept dept);

    public int updateById(Dept dept);

    public int deleteByIds(List<Integer> ids);


    @Delete("delete from dept where id=#{id}")
    int deleteById(Integer id);
}
